package kr.co.boogui.actions.movie;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import kr.co.boogui.actions.ActionHandler;
import kr.co.boogui.dao.MovieDAO;

public class MoviePlayingAction implements ActionHandler {
	@Override
	public String execute(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		String viewPage = "f|/WEB-INF/jsp/tiles/index.jsp";
		req.setAttribute("action", "../movie/movie.jsp");
		req.setAttribute("movielist", MovieDAO.readListMovie("reservationrate"));
		req.setAttribute("chartmn", "개봉일  : ");
		req.setAttribute("chartnum", 1);
		return viewPage;
	}

}
